﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 序列化和反序列化
/// </summary>
[System.Serializable]
public class GameData
{
    /// <summary>
    /// 是否是重新开始游戏
    /// </summary>
    public static bool isAgainGame = false;

    private bool isFirstGame;//第一次开始游戏
    private bool isMusicOn;//当前音效是否开
    private int[] bestScoreArr;//当前排名  -前三名
    private int selectSkin;//当前选择皮肤
    private bool[] skinUnlocked;//未解锁的皮肤
    private int diamondcount;//钻石数量

    public void SetIsFitstGame(bool isFirstGame) 
    {
        this.isFirstGame = isFirstGame;
    }
    public void SetIsMusicOn(bool isMusicOn)
    {
        this.isMusicOn = isMusicOn;
    }
    public void SetBestScoreArr(int[] bestScoreArr)
    {
        this.bestScoreArr = bestScoreArr;
    }
    public void SetSelectSkin(int selectSkin)
    {
        this.selectSkin = selectSkin;
    }
    public void SetSkinUnlocked(bool[] skinUnlocked)
    {
        this.skinUnlocked = skinUnlocked;

    }
    public void SetDiamondcount(int diamondcount)
    {
        this.diamondcount = diamondcount;
    }
    public bool GetIsFitstGame()
    {
       return isFirstGame;
    }
    public bool GetIsMusicOn()
    {
        return isMusicOn;
    }
    public int[] GetBestScoreArr()
    {
        return bestScoreArr;
    }
    public int GetSelectSkin()
    {
        return selectSkin;
    }
    public bool[] GetSkinUnlocked()
    {
        return skinUnlocked;

    }
    public int GetDiamondcount()
    {
       return diamondcount;
    }
}
